import request from '@/utils/request'

// 查询交易市场列表
export function listMallMarket(query) {
  return request({
    url: '/mall/mallMarket/list',
    method: 'get',
    params: query
  })
}

// 查询交易市场详细
export function getMallMarket(id) {
  return request({
    url: '/mall/mallMarket/' + id,
    method: 'get'
  })
}

// 新增交易市场
export function addMallMarket(data) {
  return request({
    url: '/mall/mallMarket',
    method: 'post',
    data: data
  })
}

// 修改交易市场
export function updateMallMarket(data) {
  return request({
    url: '/mall/mallMarket',
    method: 'put',
    data: data
  })
}

// 删除交易市场
export function delMallMarket(id) {
  return request({
    url: '/mall/mallMarket/' + id,
    method: 'delete'
  })
}
